import java.util.concurrent.atomic.AtomicInteger;

public class AtomicThreadIncrementer extends Thread {
	private AtomicInteger number;
	private int count;

	public AtomicThreadIncrementer(AtomicInteger number, int count) {
		this.number = number;
		this.count = count;
	}

	@Override
	public void run() {
		for (int i = 0; i < count; i++) {
			number.incrementAndGet();
		}
	}
};